<div class="class_time" >
    <select id="class_day" name="class_day{if isset($class_time_index)}{$class_time_index}{/if}">
        <option value="monday" {if isset($class_time)&& $class_time['week_day']=='monday'}selected="selected"{/if}>Segunda</option>
        <option value="tuesday" {if isset($class_time) && $class_time['week_day']=='tuesday'}selected="selected"{/if}>Terça</option>
        <option value="wednesday" {if isset($class_time) && $class_time['week_day']=='wednesday'}selected="selected"{/if}>Quarta</option>
        <option value="thursday" {if isset($class_time) && $class_time['week_day']=='thursday'}selected="selected"{/if}>Quinta</option>
        <option value="friday" {if isset($class_time) && $class_time['week_day']=='friday'}selected="selected"{/if}>Sexta</option>
        <option value="saturday" {if isset($class_time) && $class_time['week_day']=='saturday'}selected="selected"{/if}>Sabado</option>
        <option value="sunday" {if isset($class_time) && $class_time['week_day']=='sunday'}selected="selected"{/if}>Domingo</option>
    </select>
    <label>{__ t = "das"}</label>
    <input type="text" id="class_start{rand()}" class="class_start time" name="class_start{if isset($class_time_index)}{$class_time_index}{/if}" value="{if isset($class_time) && !empty($class_time['start_time'])}{$class_time['start_time']}{else}10:00{/if}"/>
    <label>{__ t = "às"}</label>
    <input type="text" id="class_end{rand()}" class="class_end time" name="class_end{if isset($class_time_index)}{$class_time_index}{/if}" value="{if isset($class_time) && !empty($class_time['end_time'])}{$class_time['end_time']}{else}11:00{/if}"/>
</div>